package com.ai.entity.alarm;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;

/**
 * 页面查询入参
 */
@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RecordAlarmBO {

    /**
     * 主键,主键ID
     */
    private Integer id;

    /**
     * 摄像头表主键
     */
    private Integer cameraId;

    /**
     * 功能表type
     */
    private String functionType;

    /**
     * 抓拍照片路径
     */
    private String snapPhoto;

    /**
     * 视频回放路径
     */
    private String snapVideo;

    /**
     * 是否误报（1.正确，2.错误）
     */
    private Integer isError;

    /**
     * 是否违章（1.未违章，2.违章）
     */
    private Integer isState;


    /**
     * 带钢号
     */
    private String stripNo;
    /**
     * 备注
     */
    private String remark;

    /**
     * 分产线区域
     */
    private Integer subgroup;

    /**
     * 0.正常
     * 1.遮挡
     * 2.丢帧
     */
    private Integer isValid = 0;
    private Integer duration;

    /**
     * 审核意见
     */
    private String reviewComments;

    public static RecordAlarmPO convertBOToPO(RecordAlarmBO recordAlarmBO) {
        RecordAlarmPO recordAlarmPO = new RecordAlarmPO();
        BeanUtils.copyProperties(recordAlarmBO, recordAlarmPO);
        return recordAlarmPO;
    }
}
